AddComponentPostInit('combat',function (self)
    local old_GetAttacked = self.GetAttacked
    function self:GetAttacked(attacker,damage,weapon,stimuli,spdamage,...)
        if attacker and attacker.prefab and attacker.prefab == 'yuemiheng' then
            if damage then
                if YMHS:checkAlive(attacker) then
                    local drain_hp = damage * TUNING.MOD_YUEMIHENG.AVATAR.YUEMIHENG.DRAIN
                    attacker.components.health:DoDelta(drain_hp)
                end
            end
        end
        return old_GetAttacked(self,attacker,damage,weapon,stimuli,spdamage,...)
    end
end)